/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const router = {
  hidden: false,
  path: '/systemManagement',
  component: Layout,
  redirect: '/systemManagement/systemSetting-list',
  meta: {
    title: '系统管理',
    icon: '系统管理',
    roles: ['BusinessModuleManagement.SystemManagement']
  },
  children: [
    {
      hidden: false,
      path: 'systemSetting-list',
      name: 'SystemManagementSystemSetting',
      component: () => import('@/views/systemManagement/systemSetting/list'),
      meta: { title: '系统设置', icon: '', roles: ['SystemSettingManagement.SystemSetting'] }
    },
    {
      path: 'systemSetting-create',
      name: 'SystemSettingCreate',
      component: () => import('@/views/systemManagement/systemSetting/create'),
      meta: { title: '添加系统设置', icon: 'edit', roles: ['SystemSettingManagement.SystemSetting.Create'] },
      hidden: true
    },
    {
      path: 'systemSetting-edit/:id',
      name: 'SystemSettingEdit',
      component: () => import('@/views/systemManagement/systemSetting/edit'),
      meta: { title: '编辑系统设置', roles: ['SystemSettingManagement.SystemSetting.Update'], noCache: true },
      hidden: true
    },
    {
      path: 'systemSetting-preview/:id',
      name: 'SystemSettingPreview',
      component: () => import('@/views/systemManagement/systemSetting/preview'),
      meta: { title: '查看系统设置', roles: ['SystemSettingManagement.SystemSetting'], noCache: true },
      hidden: true
    },
    {
      hidden: false,
      path: 'sysDictionary-list',
      name: 'SysDictionaryList',
      component: () => import('@/views/systemManagement/sysDictionary/list'),
      meta: { title: '数据字典', icon: '', roles: ['SysDictionaryManagement.SysDictionary'] }
    },
    {
      path: 'sysDictionary-create',
      name: 'SysDictionaryCreate',
      component: () => import('@/views/systemManagement/sysDictionary/create'),
      meta: { title: '添加数据字典', icon: 'edit', roles: ['SysDictionaryManagement.SysDictionary.Create'] },
      hidden: true
    },
    {
      path: 'sysDictionary-edit/:id',
      name: 'SysDictionaryEdit',
      component: () => import('@/views/systemManagement/sysDictionary/edit'),
      meta: { title: '编辑数据字典', roles: ['SysDictionaryManagement.SysDictionary.Update'], noCache: true },
      hidden: true
    },
    {
      path: 'sysDictionary-preview/:id',
      name: 'SysDictionaryPreview',
      component: () => import('@/views/systemManagement/sysDictionary/preview'),
      meta: { title: '查看数据字典', roles: ['SysDictionaryManagement.SysDictionary'], noCache: true },
      hidden: true
    }
  ]
}

export default router
